Disable Close button

You may sometimes need that the user closes the window from a button or Menu-->Exit as specified by you. you can do it by sending the app back to the loop at :close label but the user wonders why the window is not closing, If u add a warning/info it can be even more irritating. Your end user reflexly goes to that button. Here is a solution for that in VDS 5.
A window with its close button as well as Alt+F4 disabled.

Please note that this script uses calling a non vds dll.
Errors done may cause VDS/system to crash.
Save your work.Use at your own risk.
Don't be very much afraid. This is more of a legal warning.

CodeScript